package com.lu.system.user.other;

import com.lu.common.utils.ALYMailUtils;

public class RegisterMail implements Runnable{

    private String username;
    private String email;


    public RegisterMail(){

    }

    public RegisterMail(String username,String email){
        this.username = username;
        this.email = email;
    }

    @Override
    public void run() {
        String content = "欢迎"+username+"注册成功!可以根据配置设置任务邮件了," +
                "例如：每日8:00:00一个邮件，任务规则可以这样写：0 0 8 * * ?，注意都是英文的符号，" +
                "规则共有6位，第一位：秒，第二位：分，第三位：时，后面的默认* * ?。了解这些，" +
                "就可以开始体验自定义的定时任务了" ;
        new ALYMailUtils().sendHtmlEmail("showlu@mail.showlu.top","ShowLu19970108x",email,"MyTask Pro注册",content);

    }
}
